package edu.hcmus.sow.dao;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import edu.hcmus.sow.domain.TaskStatus;

/**
 * DAO to manage TaskStatus entities.
 * 
 */
@Repository("TaskStatusDAO")
@Transactional
public class TaskStatusDAOImpl extends AbstractHibernateDAO<TaskStatus, Integer> implements TaskStatusDAO {
	public TaskStatus getTaskStatusByID(Integer id) throws DataAccessException{
		TaskStatus t = findById(id);
		if (t == null)
			return null;
		else
			return t;
	}
}
